package com.ruoyi.project.system.production.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 产品对象 production
 * 
 * @author ruoyi
 * @date 2021-08-07
 */
public class    Production extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long productId;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String name;

    /** 产品价格 */
    @Excel(name = "产品价格")
    private BigDecimal price;

    /** 库存 */
    @Excel(name = "库存")
    private Long num;

    /** 是否在售 */
    @Excel(name = "是否在售", readConverterExp = "Y=是,N=否")
    private String isOnSale;

    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setNum(Long num)
    {
        this.num = num;
    }

    public Long getNum()
    {
        return num;
    }
    public void setIsOnSale(String isOnSale)
    {
        this.isOnSale = isOnSale;
    }

    public String getIsOnSale()
    {
        return isOnSale;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productId", getProductId())
            .append("name", getName())
            .append("price", getPrice())
            .append("num", getNum())
            .append("isOnSale", getIsOnSale())
            .toString();
    }
}
